package org.example.mydeom.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.mydeom.pojo.dto.RoleForUserDTO;
import org.example.mydeom.pojo.entity.Role;
import org.example.mydeom.result.Result;

public interface RoleService extends IService<Role> {
    Result<Void> add(Role role);

    Result<Void> addRoleForUser(RoleForUserDTO roleForUser);

    void delById(Long id);

    Result<Role> findById(Long id);
}
